import ajax from '@lib/ajax';

const URL = "stat/";

interface Request {
	action: "vote" | "share" | "copy" | "click";
	id: number;
}

export default function(req: Request) {
	ajax({
		url: URL + req.action,
		query: {
			id: req.id.toString()
		}
	});
}